<?php if (!defined('THINK_PATH')) exit();?><!-- 头部 -->
<!DOCTYPE html>
 <html lang="zh-CN">
<head>

<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>【家教网_<?php echo ($city); ?>老师上门】- 专业名师1对1家教辅导领先品牌</title>
<meta name="Keywords" content="老师上门,<?php echo ($city); ?>家教,一对一家教,一对一辅导" />
<meta name="Description" content="老师上门为您推荐<?php echo ($city); ?>家教优秀老师,线上预约,线下辅导。1对1家教上门,涵盖中小学各科以及艺术兴趣类优秀师资,有效提升高效学习,满意率超98%,为需要辅导的学员提供专业满意的服务" />
<meta name="author" content="laoshism.com">

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />

<link href="/lssm/Public/home/css/sishudiy.css" rel="stylesheet" type="text/css" media="all"/>
<link href="/lssm/Public/home/css/header2_9.css" rel="stylesheet" type="text/css" media="all"/>

<link href="/lssm/Public/css/layui.css" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" src="/lssm/Public/layui.js"></script>

<script type="text/javascript" src="/lssm/Public/home/js/jquery.min.js"></script>

<!-- <script type="text/javascript" src="/lssm/Public/home/js/sishu_parent_common.js"></script> -->
<script async type="text/javascript" src='/lssm/Public/home/js/indexadd.js'></script>

<script type="text/javascript">
function goPAGE() {
    if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
        window.location.href="http://www.laoshism.com/mobile";}
}
goPAGE();

</script>

</head>
<body id="sishugogo" style="background-color: #f8f8f8;">
<!--header-->
<header>

<div class="site_nav">
<div class="site_nav_lr">

<ul class="site_nav_l">
<li><a href="<?php echo U('index/index',array('newcity'=>$city));?>" target="_self">老师上门首页</a></li>
<li>|</li>
<li><a href="javascript:;" target="_self" id="addSiteFavorite">加入收藏</a></li>
</ul>
<!-- login start-->
<?php if (isset($_SESSION['phone']) && $_SESSION['is_who'] == 'laoshi') { ?>
	<ul class="site_nav_r">
	<li><a href="<?php echo U('laoshi/laoshi_core',array('newcity'=>$city));?>" title="我的课程" target="_self">我的课程</a></li>
	<li>|</li>
	<li><a href="<?php echo U('info/laoshi_info',array('id'=>$_SESSION['id'],'newcity'=>$city));?>" title="个人中心" target="_self">个人中心</a></li>
	<li>|</li>
	<li><a href="<?php echo U('laoshi/zlrz',array('newcity'=>$city));?>" title="资料设置" target="_self">资料设置</a></li>
	<li>|</li>
	<li><a href="<?php echo U('user/logout');?>" title="退出" target="_self">退出</a></li>
	</ul>
<?php }elseif (isset($_SESSION['phone']) && $_SESSION['is_who'] == 'jiazhang') { ?>
	<ul class="site_nav_r">
	<li><a href="<?php echo U('jiazhang/index',array('newcity'=>$city));?>" title="学员中心" target="_self">学员中心</a></li>
	<li>|</li>
	<li><a href="<?php echo U('jiazhang/jiazhang_one',array('newcity'=>$city));?>" title="资料设置" target="_self">资料设置</a></li>
	<li>|</li>
	<li><a href="<?php echo U('user/logout');?>" title="学员中心" target="_self">退出</a></li>
	</ul>
<?php }else { ?>
	<ul class="site_nav_r">
	<li><a href="<?php echo U('user/login',array('newcity'=>$city));?>" title="登录" target="_self">请登录</a></li>
	<li>|</li>
	<li class="signup" id="to_lsjz"><a title="免费注册" href="javascript:;">免费注册</a></li>
	<div id="lsjz" style="width: 200px;height: 120px;background: #fff;position: absolute;top: 30px;display: none;z-index: 1000;box-shadow:3px 3px 3px;">
		<div style="width: 100px;height: 120px;background: #fff;float: left;text-align: center;border-right: 1px solid #f1ebeb;">
			<p style="padding-top: 20px;padding-bottom: 10px;color:#222">我是学员</p>
			<p style="width: 80px;background: #30C76C;border-radius: 8px;margin-left: 10px;"><a href="<?php echo U('user/jz_zhuce',array('newcity'=>$city));?>" style="color:#fff">学员注册</a></p>
		</div>
		<div style="width: 100px;height: 100px;background: #fff;float: left;text-align: center;">
			<p style="padding-top: 20px;padding-bottom: 10px;color:#222">我是老师</p>
			<p style="width: 80px;background: #30C76C;border-radius: 8px;margin-left: 10px;"><a href="<?php echo U('user/ls_zhuce',array('newcity'=>$city));?>" style="color:#fff">老师注册</a></p>
		</div>
	</div>
	</ul>
<?php } ?>
<script type="text/javascript">
	$(function(){
		//alert(1111);toggle hover
		$('#to_lsjz').click(
			function(event) {
			$('#lsjz').toggle();
			}
		);
	})
</script>

</div>

</div>

<div class="headCenter">

<div class="header clear-fx">

<div class="logolay poS">

<a href="<?php echo U('index/index',array('newcity'=>$city));?>" title="老师上门官网" id="logomask" target="_self">

<img src="/lssm/Public/home/images/logo2_9.png" width="210" height="53" alt="老师上门logo" />

</a>

<span id="city_info" >

<div class="hls_gps"><label id="getCity"><?php echo ($city); ?></label>

<span id="chancity">切换城市</span></div>

<div class="showcy" id="showCity">

<ul>
    <?php foreach ($city_info as $c) { ?>
    	<li>
    		<a href="<?php echo U('index/index',array('newcity'=>$c['city_name']));?>" target="_self"><?php echo ($c["city_name"]); ?></a>
    	</li> 
    <?php } ?>          
</ul>

<div class="clear"></div>

<p>更多城市即将开放，敬请期待！</p>

</div>

</span>

</div>
<form action="<?php echo U('classes/index',array('newcity'=>$city));?>" method="post">
	<div class="hls_find">
		<input type="text" name="keyword" placeholder="输入老师姓名或老师ID号" id="find-inp" autocomplete="off" type="text" class="searchinput"/>
		<!-- <span href="javascript:void(0);" class="hls_sou" id="zoomG" onclick="toHlsSou();">搜索</span> -->
		<button class="hls_sou" style="border: 0;">搜索</button>
	</div>
</form>
<ul class="hls_stern">
	<li style="width: 225px;height: 46px;margin-top: 24px;"><img src="/lssm/Public/home/images/tel.png" alt=""></li>
</ul>

<div class="clear"></div>

</div>

</div>

        <link rel="stylesheet" type="text/css" href="/lssm/Public/home/css/sishu_teacher_index.css"
        media="all">
        <link rel="stylesheet" type="text/css" href="/lssm/Public/home/css/sishu_teacher_base.css"
        media="all">
        <link href="/lssm/Public/home/css/header2_9.css" rel="stylesheet" type="text/css"
        media="all">

        <style type="text/css">
            .calendar{position:absolute;width:150px!important;width /**/:152px;height:194px!important;height
            /**/:184px;background-color:#ffffff;border:1px solid #f90;left:0px;top:0px;z-index:9999;}
            .cdrHeader{background-color:#f90;width:150px;height:22px;font-size:12px;color:#ffffff;}
            .cdrWatermark{position:absolute;left:0px;top:90px;width:140px;font-family:
            Arial Black;font-size:50px;color:#d4d4d4;z-index:1;text-align:center;}
            .cdrBodyBar{background-color:#f4f4f4;font-size:12px;color:#000000;width:148px;height:20px;}
            .cdrBody{width:140px;height:122px!important; height /**/:110px;font-size:12px;cursor:pointer;color:#000000;}
            .dayOver{height:16px;padding:0px;border:1px solid black;background-color:#f4f4f4;}
            .dayOut{padding:1px;border:none;height:16px;} .menuOver{background-color:#f90;color:#ffffff;font-size:12px;}
            .headerOver{border:1px solid black;background-color:#f4f4f4;color:black;cursor:default;}
            .cdrMenu{font-size:12px;border:1px solid #000000;background-color:#ffffff;cursor:default;width:100%}
            html>body #Calendar{width:142px;174px;}
        </style>
            <div class="mian_nav">
                <div class="mycenter">
                    <div class="nav_box">
                        <ul>
    <li class="home"><a href="<?php echo U('index/index',array('newcity'=>$city));?>" target="_self">首页</a></li>
    <li><a href="<?php echo U('index/jiazhang_zn',array('newcity'=>$city));?>" target="_self">学员指南</a></li>
    <li><a href="<?php echo U('index/laoshi_zn',array('newcity'=>$city));?>" target="_self">老师指南</a></li>
    <li><a href="<?php echo U('index/about',array('newcity'=>$city));?>" target="_self">关于平台</a></li>
                        </ul>
                        <div class="nav-line" style="left:92px;width:64px;">
                        </div>
                    </div>
                </div>
            </div>
        </header>
        <div class="auto1200">
            <div class="jz_main fl ">
                <style>
                    .qrtop { width: 100%; padding: 60px 0 0; display: inline-block; } .qrtop
                    div{ display: inline-block; width: 100%; } .qrtop span { width: 20%; float:
                    left; text-align: right; font-size: 20px; line-height: 40px; height: 40px;
                    } .qrtop input { width: 75%; float: right; text-align: left; height: 40px;
                    line-height: 40px; margin-right: 3%; text-indent: 1em; } .qrtop textarea{
                    width: 75%; height: 100px; max-height: 130px; border: 1px solid #abadb3;
                    padding: 15px; float: right; margin-right: 3%; } .xk_ceng_twoBtn{ height:
                    50px; }
                </style>
                <div class="t_content">
                    <div class="tab1" id="tab1">
                        <div class="menu">
                            <ul id="control_childrenPages">
                                <a href="<?php echo U('laoshi/laoshi_core',array('newcity'=>$city));?>"><li id="one1" class="off"><div class="bg1"></div>预约订单</li></a>
                                <a href="<?php echo U('laoshi/laoshi_core_order',array('newcity'=>$city));?>"><li id="one1"><div class="bg1"></div>我的课程</li></a>
                                <!-- <a href="<?php echo U('laoshi/laoshi_core_zhanghao',array('newcity'=>$city));?>"><li id="one1"><div class="bg1"></div>我的账户</li></a> -->
                            </ul>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="menudiv" id="childrenPages">
                            <div class="con" style="display: block;" name="con" id="con_one_1">
                                <table class="table0 table1" cellpadding="0" cellspacing="0">
                                    <tbody>
                                        <tr>
                                            <th>预约号</th>
                                            <th>学生姓名</th>
                                            <th>年级类别</th>
                                            <th width="10%">科目</th>
                                            <th width="10%">联系课程顾问</th>
                                            <th width="20%">试听时间</th>
                                            <th width="10%">试听地点</th>
                                            <th width="20%">进度</th>
                                            <th>操作</th>
                                        </tr>
                                        <?php foreach ($yuyues as $y) { ?>
                                        <tr>
                                            <th style="background:#fff;"><?php echo ($y["id"]); ?></th>
                                            <th style="background:#fff;"><?php echo ($y["name"]); ?></th>
                                            <th width="10%" style="background:#fff;"><?php echo ($y["grade"]); ?></th>
                                            <th width="10%" style="background:#fff;"><?php echo ($y["subject"]); ?></th>
                                            <th width="10%" style="background:#fff;">18902491208</th>
                                            <th width="20%" style="background:#fff;"><?php echo ($y["date"]); ?> <?php echo ($y["time"]); ?></th>
                                            <th width="10%" style="background:#fff;"><?php echo ($y["city_quyu"]); ?></th>
                                            <?php if ($y['is_laoshi_on']==1) { ?>
                                                <th width="20%" style="background:#fff;">老师已接受,尽快联系课程顾问</th>
                                            <?php }else { ?> 
                                                <th width="20%" style="background:#fff;">等待老师接受</th>
                                            <?php } ?>
                                            <td>
                                                <?php if ($y['is_laoshi_on']==0) { ?>
                                                    <a title="接受" href="javascript:;" class="p_st_cancel" onclick="jieshou_on(this,'<?php echo ($y['id']); ?>')" >接受</a>
                                                <?php }else{ ?>
                                                <a title="删除" href="javascript:;" class="p_st_cancel" onclick="commemt_del(this,'<?php echo ($y['id']); ?>')" >取消</a>
                                                <?php } ?>
                                            </td>
                                        </tr>
                                        <?php } ?>
                                    </tbody>
                                    <table class="table0 table1" cellpadding="0" cellspacing="0">
                            </div>
                            <div style="display: none;" class="con" name="con" id="con_one_3">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script>
            layui.use(['element','laypage','layer','form'], function(){
                $ = layui.jquery;//jquery
              lement = layui.element();//面包导航
              laypage = layui.laypage;//分页
              layer = layui.layer;//弹出层
              form = layui.form();//弹出层

          })
            
            /*接受*/
            function jieshou_on(obj,id){
                layer.confirm('确认要接受吗？',function(index){
                    //发异步删除数据
                    id = id;
                    $.ajax({
                        url: "<?php echo U('laoshi/jieshou_on');?>",//请求地址
                        type: "post",//请求方式
                        dataType: "json",//返回数据类型
                        data: {id:id},//发送的参数
                        })
                        .done(function(response) {
                              if(response.error==1){
                                layer.msg(response.info ,{icon:6});
                                location.reload();
                              }else{
                                layer.msg(response.info ,{icon:5});
                              }
                          })
                        .fail(function() {
                            alert("ajxs交互失败");
                        })  
                    return false;
                });
            }
            /*删除*/
            function commemt_del(obj,id){
                layer.confirm('确认要删除吗？',function(index){
                    //发异步删除数据
                    id = id;
                    $.ajax({
                        url: "<?php echo U('laoshi/ls_order_del');?>",//请求地址
                        type: "post",//请求方式
                        dataType: "json",//返回数据类型
                        data: {id:id},//发送的参数
                        })
                        .done(function(response) {
                              if(response.error==1){
                                layer.msg(response.info ,{icon:6});
                                $(obj).parents("tr").remove();
                              }else{
                                layer.msg(response.info ,{icon:5});
                              }
                          })
                        .fail(function() {
                            alert("ajxs交互失败");
                        })  
                    return false;
                });
            }
            </script>
    </body>

</html>